	$(function(){ 
			var bot_id = $('#bot_id').val();
            //Ajax调用处理
            var get_friend_info = $.ajax({
               type: "POST",
               url: "index.php?m=bot&c=bot_order&a=get_friend_info",
               data: "bot_id="+bot_id,
               async: false
            }).responseText;
			document.getElementById('get_friend_info').innerHTML = get_friend_info;		
			var get_group_info = $.ajax({
               type: "POST",
               url: "index.php?m=bot&c=bot_order&a=get_group_info",
               data: "bot_id="+bot_id,
               async: false
            }).responseText;
			document.getElementById('get_group_info').innerHTML = get_group_info;
			var get_category_info = $.ajax({
               type: "POST",
               url: "index.php?m=bot&c=bot_order&a=get_category_info",
               data: "bot_id="+bot_id,
               async: false
            }).responseText;
			document.getElementById('get_category_info').innerHTML = get_category_info;
    });
function all_list(get_type_info) 
{
			var bot_id = $('#bot_id').val();
            //Ajax调用处理
            var get_friend_info = $.ajax({
               type: "POST",
               url: "index.php?m=bot&c=bot_order&a=get_friend_info",
               data: "bot_id="+bot_id,
               async: false
            }).responseText;
			document.getElementById('get_friend_info').innerHTML = get_friend_info;		
			var get_group_info = $.ajax({
               type: "POST",
               url: "index.php?m=bot&c=bot_order&a=get_group_info",
               data: "bot_id="+bot_id,
               async: false
            }).responseText;
			document.getElementById('get_group_info').innerHTML = get_group_info;
			var get_category_info = $.ajax({
               type: "POST",
               url: "index.php?m=bot&c=bot_order&a=get_category_info",
               data: "bot_id="+bot_id,
               async: false
            }).responseText;
			document.getElementById('get_category_info').innerHTML = get_category_info;
}
function sousuo(get_type_info) 
{
	var bot_id = $('#bot_id').val();
	var sousuokey = $('#sousuokey').val();
	var get_sousuo_info = $.ajax({
				type: "POST",
				url: "index.php?m=bot&c=bot_order&a="+get_type_info,
				data: "bot_id="+bot_id+"&sousuokey="+sousuokey,
				async: false
			}).responseText;
	document.getElementById(get_type_info).innerHTML = get_sousuo_info;
}
function info_view(info_type,info_id){
	var bot_id = $('#bot_id').val();
	var info_view_do = $.ajax({
        type: "POST",
        url: "index.php?m=bot&c=bot_order&a=info_view_do",
        data: "bot_id="+bot_id+"&info_type="+info_type+"&info_id="+info_id,
        async: false
    }).responseText;
	layer.open({
		title: '信息查看',
		type: 1,
		skin: 'layui-layer-rim', //加上边框
		area: ['460px', '280px'], //宽高
		content: info_view_do,
	});
}
function new_markname(bot_id,objet_id){
	parent.layer.prompt({title: '输入新备注'},function(val, index){
		parent.layer.close(index);
		var new_markname_do = $.ajax({
			type: "POST",
			url: "index.php?m=bot&c=bot_order&a=set_markname",
			data: "bot_id="+bot_id+"&objet_id="+objet_id+"&objet_new_markname="+val,
			async: false
		}).responseText;
		parent.layer.msg(new_markname_do);
	});
	
}
function new_groupname(bot_id,objet_id){
	parent.layer.prompt({title: '输入群组新名称'},function(val, index){
		parent.layer.close(index);
		var new_groupname_do = $.ajax({
			type: "POST",
			url: "index.php?m=bot&c=bot_order&a=set_group_displayname",
			data: "bot_id="+bot_id+"&objet_id="+objet_id+"&objet_new_groupname="+val,
			async: false
		}).responseText;
		parent.layer.msg(new_groupname_do);
	});
}
function make_friend(bot_id,objet_id){
	parent.layer.prompt({title: '请输入好友请求的附加信息'},function(val, index){
		parent.layer.close(index);
		var make_friend_do = $.ajax({
			type: "POST",
			url: "index.php?m=bot&c=bot_order&a=make_friend",
			data: "bot_id="+bot_id+"&objet_id="+objet_id+"&objet_verify="+val,
			async: false
		}).responseText;
		parent.layer.msg(make_friend_do);
	});	
}
function kick_group_member(bot_id,objet_id,objet_member){
	var kick_group_member_do = $.ajax({
        type: "POST",
        url: "index.php?m=bot&c=bot_order&a=kick_group_member",
        data: "bot_id="+bot_id+"&objet_id="+objet_id+"&objet_member="+objet_member,
        async: false
    }).responseText;	
	parent.layer.msg(kick_group_member_do);
}
 
function invite_friend(bot_id,group_id){
	var invite_friend_list = $.ajax({
        type: "POST",
        url: "index.php?m=bot&c=bot_order&a=invite_friend",
        data: "bot_id="+bot_id+"&group_id="+group_id,
        async: false
    }).responseText;
	layer.open({
		title: '好友列表',
		type: 1,
		skin: 'layui-layer-rim', //加上边框
		area: ['560px', '280px'], //宽高
		content: invite_friend_list,
	});	
}
function invite_friend_do(bot_id,group_id,member_id){
	var invite_friend_echo = $.ajax({
        type: "POST",
        url: "index.php?m=bot&c=bot_order&a=invite_friend_do",
        data: "bot_id="+bot_id+"&group_id="+group_id+"&member_id="+member_id,
        async: false
    }).responseText;	
	parent.layer.msg(invite_friend_echo);
}
function plus(bot_id,plus_access){
	layer.open({
	type: 2,
	title: '应用设置',
	maxmin: true,
	shadeClose: true, //点击遮罩关闭层
	area : ['100%' , '100%'],
	content: 'plus.php?m='+plus_access+'&c='+plus_access+'_home&a='+plus_access+'_main&bot_id='+bot_id,
	});
}